package com.zmn.brs.starter.support.parse;

import org.springframework.context.expression.MethodBasedEvaluationContext;
import org.springframework.core.ParameterNameDiscoverer;

import java.lang.reflect.Method;

/**
 * 类描述：上下文
 *
 * @author xujie
 * @since 2021/03/12 14:46
 */
public class OperateRecordEvaluationContext extends MethodBasedEvaluationContext {


    public OperateRecordEvaluationContext(Object rootObject, Method method, Object[] arguments,
                                          ParameterNameDiscoverer parameterNameDiscoverer, Object ret, String errorMsg) {

        super(rootObject, method, arguments, parameterNameDiscoverer);
        setVariable("_ret", ret);
        setVariable("_errorMsg", errorMsg);
    }
}
